<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::miss(function () {
    return '404 Not Found!';
});
Route::group('v1', function () {
    Route::post('login', 'login/index')->name('用户登录');
    Route::post('login-out', 'login/out')->name('退出登录');
    //需要登录
    Route::group('/', function () {
        Route::get('info', 'index/info');
        Route::get('chat-list', 'index/chatList');
        Route::get('chat-log-list', 'index/chatLogList');
        Route::post('add-quick-reply', 'index/addQuickReply');
        Route::get('quick-reply-list', 'index/quickReplyList');
    })->middleware(\app\middleware\UserAuth::class);
});